﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppToolkit.WPF.Services.UserMessageHandling.UI;
using NUnit.Framework;

namespace AppToolkit.WPF.Tests.Services.UserMessageHandling.UI
{
    [TestFixture]
    public class NegateConverterTests
    {

        [Test,Sequential]
        public void IntegerTests(
            [Values(1,-1,0)]int x,
            [Values(-1,1,0)]int res)
        {
            var target = new NegateConverter();
            Assert.AreEqual(res, target.Convert(x, null, null, null));
        }

        [Test, Sequential]
        public void DoubleTests(
            [Values(1, -1, 0)]double x,
            [Values(-1, 1, 0)]double res)
        {
            var target = new NegateConverter();
            Assert.AreEqual(res, target.Convert(x, null, null, null));
        }

        [Test, Sequential]
        public void DecimalTests(
            [Values(1, -1, 0)]Decimal x,
            [Values(-1, 1, 0)]Decimal res)
        {
            var target = new NegateConverter();
            Assert.AreEqual(res, target.Convert(x, null, null, null));
        }

        [Test, Sequential]
        public void FloatTests(
            [Values(1, -1, 0)]float x,
            [Values(-1, 1, 0)]float res)
        {
            var target = new NegateConverter();
            Assert.AreEqual(res, target.Convert(x, null, null, null));
        }
    }
}
